<?php //$this->Html->script('jquery-1.4.2.min'); ?>
<div class="widget grid12">
    <div class="whead"><h6>FORMULARIO DE NUEVA ORDEN DE COMPRA</h6><div class="clear"></div></div>
    <?php echo $this->Form->create('User', array('id' => "validate")); ?>
    
    <div class="formRow">
        <div class="grid3"><label>Usuario:<span class="req">*</span></label></div>
        <div class="grid9">
            <?php echo $this->Form->input('username', array('placeholder' => 'Ingrese la Orden Ej: CA-009', "class" => "validate[required, ajax[ajaxvalida]]", 'label'=>false)); ?>
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow">
        <div class="grid3"><label>Password :<span class="req">*</span></label></div>
        <div class="grid9">
            <?php echo $this->Form->input('password', array("class" => "validate[required]", 'label'=>false)); ?>
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow">
        <div class="grid3"><label>Rol :<span class="req">*</span></label></div>
        <div class="grid9">
            <?php 
                $dcr = array('admin' => 'Admin', 'author' => 'Author');
                echo $this->Form->select('role', $dcr);
            ?>
        </div>
        <div class="clear"></div>
    </div>
    
     <div class="formRow">
        <?php
        $options = array(
            'label' => 'Guardar Datos',
            'class' => 'buttonS bLightBlue',
            'id' => 'btEnvia'
        );
        echo $this->Form->end($options);
        ?> 
        <div class="clear"></div>        
    </div>
    
</div>